package com.dgut.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dgut.cache.MybatisRedisCache;
import com.dgut.pojo.Administrator;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Update;
@CacheNamespace(implementation = MybatisRedisCache.class,eviction=MybatisRedisCache.class)
public interface AdministratorMapper extends BaseMapper<Administrator> {
    @Update({ "update administrator set state= #{state} where id = #{id}" })
    int blockAdmin(int id,String state);
    
}
